package cc.iotkit.manager.controller.miniApp;

import cc.iotkit.manager.service.miniApp.ISlideImageService;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = {"用户端商品管理"})
@Slf4j
@RestController
@RequestMapping("/miniApp")
public class MiniAppSlideImagesController {

    @Autowired
    private ISlideImageService slideImageService;

    @Autowired
    private StringRedisTemplate redisTemplate;


    @Autowired
    private ObjectMapper objectMapper;

    @ApiOperation("轮播图")
    @PostMapping("/slideImages")
    public List<String> slideImages( ) throws Exception {
        List<String> list =  slideImageService.list();
        return list;
    }


}
